/*
 * @Author: your name
 * @Date: 2020-06-01 14:36:31
 * @LastEditTime: 2020-06-01 15:06:07
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \codeSnippet\nodejsAPI练习\flile.js
 */ 
const fs = require('fs')


// readFile: 异步的读取文件全部内容
// 传递字符集 callback data为字符串
// 不传递字符集 data为Buffer对象
fs.readFile('../package.json','utf8',(err,data)=>{
  if(err) throw err;
  console.log(data)
})
console.log(999);
